import datetime
import os
import sys
import traceback

from PyQt6.QtWidgets import QApplication
from UI.MainWindow_Logic import MainWindow
import Global


# 按间距中的绿色按钮以运行脚本。
if __name__ == '__main__':
    try:
        app = QApplication(sys.argv)
        main_Window = MainWindow()
        Global.mainWindow = main_Window
        main_Window.show()
        sys.exit(app.exec())
    except Exception as e:
        print(f"主程序异常:{e}")
